#ifndef FHE_GRAPHICS_APP_H
#define FHE_GRAPHICS_APP_H

#include <fhe/core/Node.h>
#include <QtCore/QTimer>

namespace fhe
{
  using namespace core;
  namespace graphics
  {
    class App : public QObject, public Node
    {
    Q_OBJECT
    
    public:
      App();
      virtual ~App();
      
      void run();
      
      double fps;
      
    public slots:
      void update();
      
    private:
      QTimer* timer_;
      double lastUpdate_;
    };
  }
}

#endif
